//
//  MyLonsFunctionView.m
//  JinFuThree
//
//  Created by 毛韶谦 on 2018/9/6.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "MyLonsFunctionView.h"

@implementation MyLonsFunctionView


- (instancetype)init {
    
    self = [super init];
    if (self) {
        self.userInteractionEnabled = NO;
        
        [self.topLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.mas_equalTo(self);
            make.centerY.mas_equalTo(self.mas_centerY).offset(-10);
        }];
        [self.bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.mas_equalTo(self);
            make.centerY.mas_equalTo(self.mas_centerY).offset(15);
        }];
    }
    return self;
}

- (UILabel *)topLabel {
    
    if (!_topLabel) {
        _topLabel = [[UILabel alloc] init];
        [_topLabel setTextAlignment:NSTextAlignmentCenter];
        _topLabel.textColor = HexColor(0x333333);
        _topLabel.font = [UIFont boldSystemFontOfSize:20];
        
        [self addSubview:_topLabel];
    }
    return _topLabel;
}
- (UILabel *)bottomLabel {
    
    if (!_bottomLabel) {
        _bottomLabel = [[UILabel alloc] init];
        [_bottomLabel setTextAlignment:NSTextAlignmentCenter];
        _bottomLabel.textColor = HexColor(0x999999);
        _bottomLabel.font = [UIFont systemFontOfSize:12];
        
        [self addSubview:_bottomLabel];
    }
    return _bottomLabel;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
